package edu.gdin.ecommerce.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * ParamType entity. @author MyEclipse Persistence Tools
 */
@Table(name = "t_param_type", catalog = "ecommerce")
@Entity
public class ParamType implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 8730215297293509021L;
	private Integer paramTypeId;
	private String name;
	private String typeDesc;

	// Constructors

	/** default constructor */
	public ParamType() {
	}

	/** full constructor */
	public ParamType(String name, String typeDesc) {
		this.name = name;
		this.typeDesc = typeDesc;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "PARAM_TYPE_ID", unique = true, nullable = false)
	public Integer getParamTypeId() {
		return this.paramTypeId;
	}

	public void setParamTypeId(Integer paramTypeId) {
		this.paramTypeId = paramTypeId;
	}

	@Column(name = "NAME", nullable = false, length = 50)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "TYPE_DESC", length = 100)
	public String getTypeDesc() {
		return this.typeDesc;
	}

	public void setTypeDesc(String typeDesc) {
		this.typeDesc = typeDesc;
	}

}